<?php

namespace App\Console\Commands\SiteLocation;

use App\Console\Commands\Traits\ExcelCommandTrait;
use App\Service\SiteLocation\Import\BrandShop;
use Illuminate\Console\Command;

class ImportBrandShop extends Command
{
    use ExcelCommandTrait;

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'siteLocation:import-branch-shop';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '导入全国其他品牌信息脚本';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $defaultUrl = 'https://file.51kuafu.com/d6/fa/aef4e959b20e6c7f7ff57772e19bad000301b0104db31249f23742d73862.csv';

        $this->excelImport(BrandShop::class, $defaultUrl);
    }
}
